home *** CD-ROM | disk | FTP | other *** search
- Path: solon.com!not-for-mail
- From: seebs@solutions.solon.com (Peter Seebach)
- Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++
- Subject: Re: C/C++ knocks the crap out of Ada
- Date: 19 Mar 1996 15:34:01 -0600
- Organization: Usenet Fact Police (Undercover)
- Message-ID: <4in989$j13@solutions.solon.com>
- References: <00001a73+00002504@msn.com> <Do9tMv.2p3@world.std.com> <4ia41k$e04@solutions.solon.com> <1996Mar19.175606.5918@nosc.mil>
- NNTP-Posting-Host: solutions.solon.com
-
- In article <1996Mar19.175606.5918@nosc.mil>,
- Charles H. Sampson <sampson@nosc.mil> wrote:
- >In article <4ia41k$e04@solutions.solon.com>,
- >Peter Seebach <seebs@solutions.solon.com> wrote:
-
- >>To be specific, C compilers are required to tell you about *some*
- >>inconsistencies. There's a clever trick with externs that lets you get
- >>this checking, and have the diagnostic be required.
-
- > I know I'm showing my ignorance of vanilla flavored C, but I find
- >this a surprising statement. C compilers are _required_ to tell the
- >user something and there's a clever trick to get the C compiler to do
- >what it's required to do. Is this a meaning of _required_ that I'm not
- >aware of?
-
-
- No. It's like this; C compilers are required to detect conflicting
- definitions. If you maintain version information in files of the sort that a
- C compiler will detect if it is in conflict, you can cause the C compiler's
- required diagnostics to apply to your files, as long as the versioning info is
- maintained.
-
- Not as good as "real" versioning, but cheap. :)
-
- > I can understand a command line switch that affects this required
- >reporting, although my preferred implementation would be to get the mes-
- >sages by default and use the switch to suppress them. However, to have
- >to use a trick to obtain required behaviour seems bizarre, even for the
- >C world. Can you elaborate?
-
- Sure. Basically, you provide version based definitions, so any conflict will
- cause a diagnostic.
-
- -s
- --
- Peter Seebach - seebs@solon.com - Copyright 1996 Peter Seebach.
- C/Unix wizard -- C/Unix questions? Send mail for help. No, really!
- FUCK the communications decency act. Goddamned government. [literally.]
- The *other* C FAQ - http://www.solon.com/~seebs/c/c-iaq.html
-